from PyQt5.QtCore import Qt
from qgis.core import QgsApplication

from mainWindow import MainWindow

if __name__ == '__main__':
    QgsApplication.setPrefixPath('D:/qgis/apps/qgis-ltr', True)
    QgsApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
    app = QgsApplication([], True)

    app.initQgis()

    mainWindow = MainWindow()
    mainWindow.show()

    # tif = r"C:\Users\swdzz\Desktop\检测\天安门.tif"
    # # mainWindow.addRasterLayer(tif)
    # shp = r"F:\三亚1\村庄合并4326\村庄合并4326\hebing.shp"
    # mainWindow.addVectorLayer(shp)

    app.exec_()
    app.exitQgis()
